/**
 * 
 */
package com.worksmap.core.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.worksmap.core.entity.User;

/**
 * @author jack
 * 2013.7.25
 */
public interface LoginService {
	/**
	 * 系统管理员登录
	 * jack
	 * 2013-8-2
	 */
	public int sysAdminLogin(User user, HttpServletRequest request, HttpServletResponse response);
	
	/**
	 * 普通用户是否登录
	 * jack
	 * 2013-7-25
	 */
	public boolean isUserLogined(HttpServletRequest request);
	
	/**
	 * 获取当前登录用户
	 * jack
	 * 2013-7-25
	 */
	public User getCurrentUser(HttpServletRequest request);
	
	/**
	 * 系统管理员是否登录
	 * jack
	 * 2013-7-25
	 */
	public boolean isAdminLogined(HttpServletRequest request);
	
	/**
	 * 获取当前系统管理员
	 * jack
	 * 2013-7-25
	 */
	public User getCurrentAdmin(HttpServletRequest request);

	public User getUser(String userName,String password);
	
	
	/**
	 * 卖家是否已登录
	 * jack
	 * 2013-12-25
	 */
	public boolean isSellerLogined(HttpServletRequest request);
	
}
